/**
 * 枚举转数组
 */
export const convertEnumToList = (entity: any) => {
    return Object.entries(entity).map(([key, value]) => ({
        label: key,
        value: value
    })).filter((item: any) => typeof item.value === 'number')
}